<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改温区配置')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-config-edit" th:object="${temperAreaConfig}">
            <input name="temperAreaId" th:field="*{temperAreaId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">温区名称, 长度1-10个字符：</label>
                <div class="col-sm-8">
                    <input name="temperAreaName" th:field="*{temperAreaName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">仓库温区编码：</label>
                <div class="col-sm-8">
                    <input name="temperatureZoneCode" th:field="*{temperatureZoneCode}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">最低温度，单位°C：</label>
                <div class="col-sm-8">
                    <input name="limitLow" th:field="*{limitLow}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">最高温度，单位°C：</label>
                <div class="col-sm-8">
                    <input name="limitHigh" th:field="*{limitHigh}" class="form-control" type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/temper";
        $("#form-config-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-config-edit').serialize());
            }
        }
    </script>
</body>
</html>